<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsWebConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_web_configs', function (Blueprint $table) {
            $table->tinyIncrements('id')->comment('id');
            $table->string('name')->comment('网站名称')->default('qaecms');
            $table->string('subtitle')->comment('网站副标题')->default('qaecms');
            $table->string('domin')->comment('网站域名')->default('www.qaecms.com');
            $table->string('logo')->comment('网站logo')->default('www.qaecms.com');
            $table->string('icp')->comment('icp备案')->default('icp xxxxxx');
            $table->string('email')->comment('站长邮箱')->default('xxx@qq.com');
            $table->string('contact')->comment('其他联系方式')->default("");
            $table->string('template')->comment('模板')->default("default");
            $table->tinyInteger('status')->comment('站点状态 0关闭 1开启')->default(1);
            $table->mediumText('statistic')->comment('百度统计api')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_web_configs');
    }
}
